<?php

namespace App\Entities;

use Illuminate\Database\Eloquent\Model;
use Prettus\Repository\Contracts\Transformable;
use Prettus\Repository\Traits\TransformableTrait;

class RoleUser extends Model implements Transformable
{
    use TransformableTrait;

    protected $table = 'role_user';
    /**
     * @return \Illuminate\Database\Eloquent\Relations\HasOne
     */
    public function role(){
        return $this->hasOne('App\Entities\Role', 'id', 'role_id');
    }

}
